From: Andrew F. Davis Date: Mon, 25 Jun 2018 17:10:53 +0000 (-0500) Subject: ti: k3: common: Add root domain node to platform topology X-Git-Url: http://git.openwrt.org/%22https:/collectd.org//%22/%22https:/collectd.org/%22?a=commitdiff_plain;h=79a1a84957f65dab7a3d535a7f6df392884e157d;p=project%2Fbcm63xx%2Fatf.git ti: k3: common: Add root domain node to platform topology Actions may need to be taken by the last core when all clusters have been shutdown. Add a top level root domain node to coordinate this between clusters. Signed-off-by: Andrew F. Davis --- diff --git a/plat/ti/k3/common/k3_topology.c b/plat/ti/k3/common/k3_topology.c index a77c8f34..d7ac0a58 100644 --- a/plat/ti/k3/common/k3_topology.c +++ b/plat/ti/k3/common/k3_topology.c @@ -9,6 +9,7 @@ /* The power domain tree descriptor */ static unsigned char power_domain_tree_desc[] = { + PLATFORM_SYSTEM_COUNT, PLATFORM_CLUSTER_COUNT, K3_CLUSTER0_CORE_COUNT, #if K3_CLUSTER1_MSMC_PORT != UNUSED diff --git a/plat/ti/k3/include/platform_def.h b/plat/ti/k3/include/platform_def.h index 8856af2c..ebc9c477 100644 --- a/plat/ti/k3/include/platform_def.h +++ b/plat/ti/k3/include/platform_def.h @@ -62,9 +62,10 @@ #define PLATFORM_CLUSTER_OFFSET K3_CLUSTER0_MSMC_PORT -#define PLAT_NUM_PWR_DOMAINS (PLATFORM_CLUSTER_COUNT + \ +#define PLAT_NUM_PWR_DOMAINS (PLATFORM_SYSTEM_COUNT + \ + PLATFORM_CLUSTER_COUNT + \ PLATFORM_CORE_COUNT) -#define PLAT_MAX_PWR_LVL MPIDR_AFFLVL1 +#define PLAT_MAX_PWR_LVL MPIDR_AFFLVL2 /******************************************************************************* * Memory layout constants